//
//  MYTempViewController.swift
//  NewMicroblog
//
//  Created by apple on 2016/10/22.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class MYTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
    
      let idx = navigationController?.childViewControllers.count
      navigationItem.title = "\(idx!)个控制器"
        
            navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: nil, title: "PUSH", target: self, action: #selector(pushClick))

    }
    

    func pushClick(){
        let tempVc = MYTempViewController()
        navigationController?.pushViewController(tempVc, animated: true)
    }

 
}
